﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebReservation.aspx.cs" Inherits="WebClient.WebReservation" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <title>Reservation</title>
    <link href="Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div id="bannerdiv">
            <img src="pictures\logo_better-place.png" alt="BETTERPLACE - Logo load failed" />

        </div>
        <div>
            <table id="tbllink" frame="border">
                <tr>
                    <td class="auto-style2">
                        <asp:Button class="btnlink" runat="server" Text="Ruteplanlægning" OnClick="btnrutelink_Click" /></td>

                    <td>
                        <asp:Button class="btnlink" runat="server" Text="Reservation"  /></td>
                </tr>

            </table>
        </div>

        <div style="overflow-y: scroll" id="gridviewpartres">
            <asp:Panel CssClass="pnlgridcurres" runat="server">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="SqlDbPartReservation">
                    <Columns>
                        <asp:BoundField DataField="Id" HeaderText="Id" ReadOnly="True" SortExpression="Id">
                            <HeaderStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Count" HeaderText="Count" SortExpression="Count">
                            <HeaderStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="PickupDate" HeaderText="PickupDate" SortExpression="PickupDate">
                            <HeaderStyle Width="300px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="FK_ReservationId" HeaderText="FK_ReservationId" SortExpression="FK_ReservationId">
                            <HeaderStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="FK_StationId" HeaderText="FK_StationId" SortExpression="FK_StationId">
                            <HeaderStyle Width="100px" />
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
            </asp:Panel>
            <asp:SqlDataSource ID="SqlDbPartReservation" runat="server" ConnectionString="<%$ ConnectionStrings:dmaa0912_E4ConnectionString %>" SelectCommand="SELECT * FROM [PartReservation]"></asp:SqlDataSource>
        </div>
        <div id="placeholderdiv">
            

        </div>
        <div style="overflow-y:scroll" id="gridviewres">
            <asp:Panel CssClass="pnlgridres" runat="server">
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="SqlDbReservation">
                <Columns>
                    <asp:BoundField DataField="Id" HeaderText="Id" ReadOnly="True" SortExpression="Id">
                        <HeaderStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date">
                        <HeaderStyle Width="400px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="FK_PersonId" HeaderText="FK_PersonId" SortExpression="FK_PersonId">
                        <HeaderStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="FK_RouteId" HeaderText="FK_RouteId" SortExpression="FK_RouteId">
                        <HeaderStyle Width="100px" />
                    </asp:BoundField>
                </Columns>
            </asp:GridView>
                </asp:Panel>
            <asp:SqlDataSource ID="SqlDbReservation" runat="server" ConnectionString="<%$ ConnectionStrings:dmaa0912_E4ConnectionString %>" SelectCommand="SELECT * FROM [Reservation]"></asp:SqlDataSource>
        </div>
        <div id="placeholderdiv">
            

        </div>
    </form>
</body>
</html>
